﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Patent.CN;

public partial class Sys_CreateTopicIDSessinEx : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string result = string.Empty;
        if (Request["topicID"] != null)
        {
            Session["topicID"] = Request["topicID"];
            // 添加判断是否是中国专项
            ChinaAnalysis cnAnalysis = new ChinaAnalysis(Convert.ToInt32(Request["topicID"]));
            bool isChinesePatent = cnAnalysis.IsChineseTopic();
            result = "{success:true,isChinesePatent:"+isChinesePatent.ToString().ToLower()+"}";
        }
        else
        {
            result = "{success:false,isChinesePatent:false}";
        }
        Response.Write(result);
        Response.End();
    }
}
